﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Clients.Hks;
/// <summary>
/// OCV测试结果
/// </summary>
[ProtoContract]
public class OCVTrayResult
{
    /// <summary>
    /// 设备编号
    /// </summary>
    [ProtoMember(1)]
    public string EquipmentCode { get; set; }
    /// <summary>
    /// 托盘号
    /// </summary>
    [ProtoMember(2)]
    public string TrayNo { get; set; }

    [ProtoMember(3)]
    public List<CellDetail> OcvData { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    [ProtoMember(4)]
    public string StartTime { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    [ProtoMember(5)]
    public string EndTime { get; set; }
    [ProtoMember(6)]
    public int GroupNumber { get; set; }
}

[ProtoContract]
public class CellDetail
{
    /// <summary>
    /// 通道号
    /// </summary>
    [ProtoMember(1)]
    public int Channel { get; set; }
    /// <summary>
    /// 电压
    /// </summary>
    [ProtoMember(2)]
    public double Valtage { get; set; }
    /// <summary>
    /// 内阻
    /// </summary>
    [ProtoMember(3)]
    public double Ir { get; set; }
}

/// <summary>
/// OCV结果返回信息
/// </summary>
[ProtoBuf.ProtoContract]
public class OCVCellMain
{
    /// <summary>
    /// 是否复测
    /// </summary>
    [ProtoBuf.ProtoMember(1)]
    public bool Rework { get; set; }
    [ProtoBuf.ProtoMember(2)]
    public List<FMTCell> Cells { get; set; }
}
